Class OSPFProcessImpl

All Implemented Interfaces:
IPCObject, OSPFProcess, Process, RoutingProtocol

public class OSPFProcessImpl extends RoutingProtocolImpl implements OSPFProcess
Information provided by the PKI file:

    \class OspfProcess
    
    \brief OspfProcess is the process that handles the individual OSPF process.
    
    \example network().getDevice("Router0").getProcess("OspfMainProcess").getOspfProcessAt(0)
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getProcessId

      public int getProcessId()
      Information provided by the PKI file:
      
          \brief Returns the OSPF process ID.
          
          \return int, the OSPF process ID.
          
              
      Specified by:
      getProcessId in interface OSPFProcess
      Returns:
      int Returns a int
    • getRouterId

      public IPAddress getRouterId()
      Information provided by the PKI file:
      
          \brief Returns the router-ID for this OSPF process.
          
          \return ip, the router-ID for this OSPF process.
          
              
      Specified by:
      getRouterId in interface OSPFProcess
      Returns:
      IPAddress Returns a IPAddress
    • getAreaCount

      public int getAreaCount()
      Information provided by the PKI file:
      
          \brief Returns the number of OSPF areas.
          
          \return int, the number of OSPF areas.
          
              
      Specified by:
      getAreaCount in interface OSPFProcess
      Returns:
      int Returns a int
    • getAreaAt

      public OSPFArea getAreaAt(int index)
      Information provided by the PKI file:
      
          \brief Returns the OSPF area at the specified index.
          
          \param index, the index of the OSPF area of interest.
          
          \return OspfArea, the OspfArea object at the specified index.
          
              
      Specified by:
      getAreaAt in interface OSPFProcess
      Parameters:
      index - Takes in a parameter of index
      Returns:
      OSPFArea Returns a OSPFArea
    • getArea

      public OSPFArea getArea(IPAddress ipAddressArea)
      Information provided by the PKI file:
      
          \brief Returns the OSPF area with the specified ID in IP address format.
          
          \param ipAddressArea, the ID in IP address format of the OSPF area of interest.
          
          \return OspfArea, the OspfArea object with the specified IP address.
          
              
      Specified by:
      getArea in interface OSPFProcess
      Parameters:
      ipAddressArea - Takes in a parameter of ipAddressArea
      Returns:
      OSPFArea Returns a OSPFArea
    • removeArea

      public void removeArea(IPAddress ipAddressArea)
      Information provided by the PKI file:
      
          \brief Removes the OSPF area with the specified ID in IP address format.
          
          \param ipAddressArea, the ID in IP address format of the OSPF area of interest.
          
              
      Specified by:
      removeArea in interface OSPFProcess
      Parameters:
      ipAddressArea - Takes in a parameter of ipAddressArea
    • setAreaAuthentication

      public boolean setAreaAuthentication(IPAddress ipAddressArea, OSPFAuthType type)
      Information provided by the PKI file:
      
          \Sets the authentication type for the OSPF area with the specified ID in IP address format.
          
          \param ipAddressArea, the ID in IP address format of the OSPF area of interest.
          \param type,        the authentication type.
          Authentication types:       eNoAuth = 0,
          eAuth = 1,
          eMD5Auth = 2
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      setAreaAuthentication in interface OSPFProcess
      Parameters:
      ipAddressArea - Takes in a parameter of ipAddressArea
      type - Takes in a parameter of type
      Returns:
      boolean Returns a boolean
    • getAreaAuthenticationCount

      public int getAreaAuthenticationCount()
      Information provided by the PKI file:
      
          \brief Returns the number of authenticated areas.
          
          \return int, the number of authenticated areas.
          
              
      Specified by:
      getAreaAuthenticationCount in interface OSPFProcess
      Returns:
      int Returns a int
    • getAreaAuthenticationAt

      public Pair<IPAddress,Integer> getAreaAuthenticationAt(int index)
      Information provided by the PKI file:
      
          \brief Returns the ID in IP address format and authentication type of the authenticated area at the specifed index.
          
          \param index, the index of the authenticated area of interest.
          
          \return pair<ip, int>, the ID in IP address format and authentication type of the authenticated area at the specifed index.
          
              
      Specified by:
      getAreaAuthenticationAt in interface OSPFProcess
      Parameters:
      index - Takes in a parameter of index
      Returns:
      Pair<IPAddress, Integer> Returns a Pair<IPAddress, Integer>
    • getAreaAuthentication

      public OSPFAuthType getAreaAuthentication(IPAddress ipAddressArea)
      Information provided by the PKI file:
      
          \brief Returns the authentication type of the area with the specified ID in IP address format.
          
          \param ipAddressArea, the ID in IP address format of the area of interest.
          
          \return OspfAuthType,       the authentication type.
          Authentication types:       eNoAuth = 0,
          eAuth = 1,
          eMD5Auth = 2
          
              
      Specified by:
      getAreaAuthentication in interface OSPFProcess
      Parameters:
      ipAddressArea - Takes in a parameter of ipAddressArea
      Returns:
      OSPFAuthType Returns a OSPFAuthType
    • setDefaultInfoOrig

      public void setDefaultInfoOrig(OSPFDefaultInfoOrig type)
      Information provided by the PKI file:
      
          \brief Sets the default information originate setting.
          
          \param type,        the default information originate setting.
          Default information originate settings:     eNoDefaultInfoOrig = 0,
          eDefaultInfoOrig = 1,
          eDefaultInfoOrigAlways = 2
          
              
      Specified by:
      setDefaultInfoOrig in interface OSPFProcess
      Parameters:
      type - Takes in a parameter of type
    • getDefaultInfoOrig

      public OSPFDefaultInfoOrig getDefaultInfoOrig()
      Information provided by the PKI file:
      
          \brief Returns the default information originate setting.
          
          \return OspfDefaultInfoOrig,        the default information originate setting.
          Default information originate settings:     eNoDefaultInfoOrig = 0,
          eDefaultInfoOrig = 1,
          eDefaultInfoOrigAlways = 2
          
              
      Specified by:
      getDefaultInfoOrig in interface OSPFProcess
      Returns:
      OSPFDefaultInfoOrig Returns a OSPFDefaultInfoOrig
    • setLogAdjacencyChanges

      public void setLogAdjacencyChanges(OSPFLogChanges type)
      Information provided by the PKI file:
      
          \brief Sets the log adjacadeny changes setting.
          
          \param type,        the log adjacadeny changes setting.
          Log adjacadeny changes settings:    eNoLogChange = 0,
          eLogChange = 1,
          eLogChangeDetail = 2
          
              
      Specified by:
      setLogAdjacencyChanges in interface OSPFProcess
      Parameters:
      type - Takes in a parameter of type
    • getLogAdjacencyChanges

      public OSPFLogChanges getLogAdjacencyChanges()
      Information provided by the PKI file:
      
          \brief Returns the log adjacadeny changes setting.
          
          \return OspfLogChanges,     the log adjacadeny changes setting.
          Log adjacadeny changes settings:    eNoLogChange = 0,
          eLogChange = 1,
          eLogChangeDetail = 2
          
              
      Specified by:
      getLogAdjacencyChanges in interface OSPFProcess
      Returns:
      OSPFLogChanges Returns a OSPFLogChanges
    • addConfiguredNetwork

      public void addConfiguredNetwork(IPAddress ipAddressArea, IPAddress ipAddress, IPAddress mask)
      Information provided by the PKI file:
      
          \brief Enables OSPF routing in the specified OSPF area for the specified network.
          
          \param ipAddressArea, the ID in IP address format of the OSPF area.
          \param ipAddress, the network address.
          \param mask, the OSPF wild card bits.
          
              
      Specified by:
      addConfiguredNetwork in interface OSPFProcess
      Parameters:
      ipAddressArea - Takes in a parameter of ipAddressArea
      ipAddress - Takes in a parameter of ipAddress
      mask - Takes in a parameter of mask
    • removeConfigureNetwork

      public void removeConfigureNetwork(IPAddress ipAddressArea, IPAddress ipAddress, IPAddress mask)
      Information provided by the PKI file:
      
          \brief Disables OSPF routing in the specified OSPF area for the specified network.
          
          \param ipAddressArea, the ID in IP address format of the OSPF area.
          \param ipAddress, the network address.
          \param mask, the OSPF wild card bits.
          
              
      Specified by:
      removeConfigureNetwork in interface OSPFProcess
      Parameters:
      ipAddressArea - Takes in a parameter of ipAddressArea
      ipAddress - Takes in a parameter of ipAddress
      mask - Takes in a parameter of mask
    • getConfNetworkCount

      public int getConfNetworkCount()
      Information provided by the PKI file:
      
          \brief Returns the number of configured networks.
          
          \return int, the number of configured networks.
          
              
      Specified by:
      getConfNetworkCount in interface OSPFProcess
      Returns:
      int Returns a int
    • getConfNetworkAt

      public OSPFAreaNetwork getConfNetworkAt(int index)
      Information provided by the PKI file:
      
          \brief Returns the configured network at the specified index.
          
          \param index, the index of the network of interest.
          
          \return OspfAreaNetwork, the OspfAreaNetwork object.
          
              
      Specified by:
      getConfNetworkAt in interface OSPFProcess
      Parameters:
      index - Takes in a parameter of index
      Returns:
      OSPFAreaNetwork Returns a OSPFAreaNetwork
    • getAreaId

      public IPAddress getAreaId(IPAddress ipAddress, IPAddress mask)
      Information provided by the PKI file:
      
          \brief Returns the area ID in IP address format of the specified network.
          
          \param ipAddress, the network address.
          \param mask, the OSPF wild card bits.
          
          \return ip, the ID in IP address format of the specified network.
          
              
      Specified by:
      getAreaId in interface OSPFProcess
      Parameters:
      ipAddress - Takes in a parameter of ipAddress
      mask - Takes in a parameter of mask
      Returns:
      IPAddress Returns a IPAddress
    • setDefaultPassiveInt

      public void setDefaultPassiveInt(boolean b)
      Information provided by the PKI file:
      
          \brief Enables or disables default passive interface.
          
          \param b, true to enable default passive interface, false to disable it.
          
              
      Specified by:
      setDefaultPassiveInt in interface OSPFProcess
      Parameters:
      b - Takes in a parameter of b
    • getDefaultPassiveInt

      public boolean getDefaultPassiveInt()
      Information provided by the PKI file:
      
          \brief Returns true if default passive interface is enabled, otherwise false.
          
          \return bool, true if default passive interface is enabled, otherwise false.
          
              
      Specified by:
      getDefaultPassiveInt in interface OSPFProcess
      Returns:
      boolean Returns a boolean
    • setPassiveInt

      public void setPassiveInt(String portname, boolean bPassive)
      Information provided by the PKI file:
      
          \brief Enables or disables passive interface for the specified port.
          
          \param portName,    portName can be one of the following plus a port number where appropriate:
          Console, Aux, Ethernet, FastEthernet, GigabitEthernet,
          Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async.
          Example: FastEthernet0/0
          \param bPassive, true to enable passive interface, false to disable it.
          
              
      Specified by:
      setPassiveInt in interface OSPFProcess
      Parameters:
      portname - Takes in a parameter of portname
      bPassive - Takes in a parameter of bPassive
    • generateOspfRoutes

      public void generateOspfRoutes(IPAddress ipAddressAreaID)
      Information provided by the PKI file:
      
          \brief Generates the OSPF routes for the OSPF area with the specified ID in IP address format.
          
          \param ipAddressAreaID, the ID in IP address format of the OSPF area of interest.
          
              
      Specified by:
      generateOspfRoutes in interface OSPFProcess
      Parameters:
      ipAddressAreaID - Takes in a parameter of ipAddressAreaID